﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Web.Http;

namespace ERPStore.Web.Tasks.Controllers
{
	public class TasksApiWrapperController : ERPStore.Tasks.Controllers.TasksApiController
	{
		public TasksApiWrapperController(ERPStore.Tasks.Services.ScheduledTaskService tasksService)
			: base(tasksService)
		{
		}

		[ERPStore.Web.Controllers.ActionFilters.ApiAuthorizedOperation]
		[System.Web.Http.HttpGet]
		public override IQueryable<ERPStore.Tasks.ViewModels.Task> GetList()
		{
			return base.GetList();
		}

		[ERPStore.Web.Controllers.ActionFilters.ApiAuthorizedOperation]
		[System.Web.Http.HttpGet]
		public void ForceTask(string id)
		{
			base.ForceTask(id);
		}

		[ERPStore.Web.Controllers.ActionFilters.ApiAuthorizedOperation]
		[System.Web.Http.HttpGet]
		public ERPStore.Tasks.Models.Settings GetSettings()
		{
			return base.GetSettings();
		}

		[ERPStore.Web.Controllers.ActionFilters.ApiAuthorizedOperation]
		[System.Web.Http.HttpPost]
		public void ApplySettings(ERPStore.Tasks.Models.Settings settings)
		{
			base.ApplySettings(settings);
		}
	}
}